package com.company;

public class SxtStu {
        int id;
        String name;
        int age;
        Computer comp;




    public static void main(String[] args) {
	        SxtStu stu1=new SxtStu();  //对象名与类名一致。
            stu1.name="张三";
        Computer comp1=new Computer();
            comp1.brand="联想";

        stu1.comp=comp1;
        System.out.println("我正在学习！使用我们的电脑，"+comp1.brand);
    }
}



    class Computer{
            String brand;
        }
